package cn.tedu.service.impl;



import cn.tedu.mapper.UserMapper;
import cn.tedu.pojo.User;
import cn.tedu.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;


    @Override
    public User findUserByName(String username) {

        return userMapper.findUserByName(username);
    }

    @Override
    public int addUser(User user) {
        userMapper.addUser(user);
        return 1;
    }

}
